<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="css/loong.css">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<%@ include file="include/top.jsp" %>
	<!-- 头结束 -->
	
	
	<div class="container">
	  <div class="row row-inner">
		<%@ include file="include/left.jsp" %>
		<div class="span8">
			<div class="btn-group" style="float:right">
          		<a class="btn" href="#"><i class="icon-cog"></i>操作</a>
          		<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
          		<ul class="dropdown-menu">
            		<li><a href="newgoal.jspx"><i class="icon-plus"></i>添加新目标</a></li>
          		</ul>
        	</div>

			<div class="clear"></div>
			<c:choose>
				<c:when test="${empty requestScope.list }">
					<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
						<li class="active">
							<i class="icon-th"></i>没有目标
						</li>
					</ul>
					<div class="wall">
						<h3>你没有任何目标</h3>						
					</div>
				</c:when>
				<c:otherwise>
					<c:forEach var="item" items="${requestScope.list }" varStatus="statu">
						<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
							<li class="active">
								<a href="/task.jspx?id=${item.id }"><i class="icon-th"></i>目标${statu.count }　　${item.name }</a>
							</li>
						</ul>
						<div class="wall">
							<p>${item.desc }</p>
							<div class="progress progress-danger">
								<div class="bar" style="width:${item.rate}%;" >已完成${item.rate}%</div>
							</div>
						</div>
					</c:forEach>
				</c:otherwise>
			</c:choose>	
			
		</div>
	  </div>
	  <%@ include file="include/foot.jsp" %>
	</div>
</body>
</html>